import { createRouter, createWebHistory } from "vue-router";
import Show from "../components/show.vue";
import Operatire from "../components/Operatire.vue";

let router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      components: {
        default: Show,
        show: Operatire,
      },
    },
    {
      path: "/operatire",
      components: {
        default: Operatire,
        show: Show,
      },
    },
    {
      path: "/show",
      component: Show,
    },
  ],
});
export default router;
